import Layout from '@/layout'

const Router = {
  path: '/integralOperation',
  component: Layout,
  redirect: '/operationConfiguration',
  name: 'integralOperation',

  meta: {
    title: '积分运营管理',
    icon: 'integralOperation'
  },
  children: [{
      path: 'operationConfiguration',
      component: () => import('@/views/integralOperation/operationConfiguration/index'),
      name: 'operationConfiguration',
      meta: {
        title: '积分运营配置',
        noCache: true
      }
    },
    {
      path: 'commodityConfiguration',
      component: () => import('@/views/integralOperation/commodityConfiguration/index'),
      name: 'commodityConfiguration',
      hidden: true,
      meta: {
        title: '积分商品配置',
        noCache: true
      }
    },
    {
      path: 'commodityExchange',
      component: () => import('@/views/integralOperation/commodityExchange/index'),
      name: 'commodityExchange',
      meta: {
        title: '商品兑换订单',
        noCache: true
      }
    },
    {
      path: 'CoCoDistribution',
      component: () => import('@/views/integralOperation/CoCoDistribution/index'),
      name: 'CoCoDistribution',
      meta: {
        title: 'CoCo分配',
        noCache: true
      }
    },
    {
      path: 'distributionPoints',
      component: () => import('@/views/integralOperation/distributionPoints/index'),
      name: 'distributionPoints',
      meta: {
        title: '运营积分发放',
        noCache: true
      }
    },
    {
      path: 'pointsApproval',
      component: () => import('@/views/integralOperation/pointsApproval/index'),
      name: 'pointsApproval',
      meta: {
        title: '运营积分审批',
        noCache: true
      }
    },
    {
      path: 'changeConfig',
      component: () => import('@/views/integralOperation/changeConfig/index'),
      name: 'changeConfig',
      meta: {
        title: '积分兑换配置',
        noCache: true
      }
    },
    {
      path: 'integralRunDetail',
      component: () => import('@/views/integralOperation/integralRunDetail/index'),
      name: 'integralRunDetail',
      meta: {
        title: '积分流水明细',
        noCache: true
      }
    },
    {
      path: 'labelList',
      component: () => import('@/views/equityManager/labelList/index'),
      name: 'labelList',
      meta: {
        title: '权益标签配置',
        noCache: true
      }
    },
  ]
}

export default Router
